﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace MBA.FluentExt
{
	public static class Extensions
	{
		#region Methods

		public static string FormatWith(this string format, params object[] args)
		{
			return string.Format(format, args);
		}

		public static string ToCamel(this string value)
		{
			if(value == null)
			{
				return null;
			}

			if(value.Length == 1)
			{
				return value.ToLower();
			}

			return string.Concat(value.Substring(0, 1).ToLower(), value.Substring(1));
		}

		#endregion Methods
	}
}